<!DOCTYPE html>
<html id="docs" lang="en" class="">
	<head>
	<meta charset="utf-8">
<title>Storage Classes - Kubernetes</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="../../../images/favicon.png">
<link rel="stylesheet" type="text/css" href="../../../css/base_fonts.css">
<link rel="stylesheet" type="text/css" href="../../../css/styles.css">
<link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css">
<link rel="stylesheet" type="text/css" href="../../../css/callouts.css">
<link rel="stylesheet" type="text/css" href="../../../css/custom-jekyll/tags.css">




<meta name="description" content="Storage Classes" />
<meta property="og:description" content="Storage Classes" />

<meta property="og:url" content="https://kubernetes.io/docs/concepts/storage/storage-classes/" />
<meta property="og:title" content="Storage Classes - Kubernetes" />

<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script
src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script>
<script src="../../../js/script.js"></script>
<script src="../../../js/custom-jekyll/tags.js"></script>


	</head>
	<body>
		<div id="cellophane" onclick="kub.toggleMenu()"></div>

<header>
    <a href="../../../index.html" class="logo"></a>

    <div class="nav-buttons" data-auto-burger="primary">
        <ul class="global-nav">
            
            
            <li><a href="../../home.1">Documentation</a></li>
            
            <li><a href="../../../blog/index.html">Blog</a></li>
            
            <li><a href="../../../partners/index.html">Partners</a></li>
            
            <li><a href="../../../community/index.html">Community</a></li>
            
            <li><a href="../../../case-studies/index.html">Case Studies</a></li>
            
            
             <li>
                <a href="storage-classes.1#">
                    English <span class="ui-icon ui-icon-carat-1-s"></span>
                </a>
                <ul>
                
                    <li><a href="../../../zh/index.html">中文 Chinese</a></li>
                
                    <li><a href="../../../ko/index.html">한국어 Korean</a></li>
                
                </ul>
            </li>
         
            <li>
                <a href="storage-classes.1#">
                    v1.11 <span class="ui-icon ui-icon-carat-1-s"></span>
                </a>
                <ul>
                
                    <li><a href="https://kubernetes.io">v1.12</a></li>
                
                    <li><a href="../../../index.html">v1.11</a></li>
                
                    <li><a href="https://v1-10.docs.kubernetes.io">v1.10</a></li>
                
                    <li><a href="https://v1-9.docs.kubernetes.io">v1.9</a></li>
                
                </ul>
            </li>
        </ul>
        
        <a href="../../tutorials/kubernetes-basics/index.html" class="button" id="tryKubernetes" data-auto-burger-exclude>Try Kubernetes</a>
        <button id="hamburger" onclick="kub.toggleMenu()" data-auto-burger-exclude><div></div></button>
    </div>

    <nav id="mainNav">
        <main data-auto-burger="primary">
        <div class="nav-box">
            <h3><a href="../../tutorials/stateless-application/hello-minikube/index.html">Get Started</a></h3>
            <p>Ready to get your hands dirty? Build a simple Kubernetes cluster that runs "Hello World" for Node.js.</p>
        </div>
        <div class="nav-box">
            <h3><a href="../../home.1">Documentation</a></h3>
            <p>Learn how to use Kubernetes with the use of walkthroughs, samples, and reference documentation. You can even <a href="../../../editdocs/index.html" data-auto-burger-exclude>help contribute to the docs</a>!</p>
        </div>
        <div class="nav-box">
            <h3><a href="../../../community/index.html">Community</a></h3>
            <p>If you need help, you can connect with other Kubernetes users and the Kubernetes authors, attend community events, and watch video presentations from around the web.</p>
        </div>
        <div class="nav-box">
            <h3><a href="../../../blog/index.html">Blog</a></h3>
            <p>Read the latest news for Kubernetes and the containers space in general, and get technical how-tos hot off the presses.</p>
        </div>
        </main>
        <main data-auto-burger="primary">
        <div class="left">
            <h5 class="github-invite">Interested in hacking on the core Kubernetes code base?</h5>
            <a href="https://github.com/kubernetes/kubernetes" class="button" data-auto-burger-exclude>View On Github</a>
        </div>

        <div class="right">
            <h5 class="github-invite">Explore the community</h5>
            <div class="social">
                <a href="https://twitter.com/kubernetesio" class="twitter"><span>Twitter</span></a>
                <a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
                <a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
                <a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>Stack Overflow</span></a>
                <a href="https://discuss.kubernetes.io" class="mailing-list"><span>Forum</span></a>
                <a href="https://calendar.google.com/calendar/embed?src=nt2tcnbtbied3l6gi2h29slvc0%40group.calendar.google.com" class="calendar"><span>Events Calendar</span></a>
            </div>
        </div>
        <div class="clear" style="clear: both"></div>
        </main>
    </nav>
</header>

		
		
		<section id="hero" class="light-text no-sub">
			









<h1>Concepts</h1>
<h5></h5>








<div id="vendorStrip" class="light-text">
	<ul>
		
		
		<li><a href="../../home.1">DOCUMENTATION</a></li>
		
		
		<li><a href="../../setup/index.html">SETUP</a></li>
		
		
		<li><a href="../index.html" class="YAH">CONCEPTS</a></li>
		
		
		<li><a href="../../tasks/index.html">TASKS</a></li>
		
		
		<li><a href="../../tutorials/index.html">TUTORIALS</a></li>
		
		
		<li><a href="../../reference.1">REFERENCE</a></li>
		
	</ul>
	<div id="searchBox">
		<input type="text" id="search" placeholder="Search" onkeydown="if (event.keyCode==13) window.location.replace('/docs/search/?q=' + this.value)" autofocus="autofocus">
	</div>
</div>

		</section>
		
		
<section id="deprecationWarning">
  <main>
    <div class="content deprecation-warning">
      <h3>
        Documentation for Kubernetes v1.11 is no longer actively maintained. The version you are currently viewing is a static snapshot.
        For up-to-date documentation, see the <a href="https://kubernetes.io/docs/home/">latest</a> version.
      </h3>
    </div>
  </main>
</section>


		<section id="encyclopedia">
			
<div id="docsToc">
     <div class="pi-accordion">
    	
        
        
        
        
        
         
             
                 
             
         
             
                 
             
         
             
                 
                          
                          
                 
             
         
             
         
             
         
             
         
             
         
             
         
         
        
        <a class="item" data-title="Concepts" href="../index.html"></a>

	
	
		
		
	<div class="item" data-title="Overview">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="What is Kubernetes?" href="../overview/index.html"></a>

		
	
		
		
<a class="item" data-title="Kubernetes Components" href="../overview/components.1"></a>

		
	
		
		
<a class="item" data-title="The Kubernetes API" href="../overview/kubernetes-api/index.html"></a>

		
	
		
		
	<div class="item" data-title="Working with Kubernetes Objects">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Understanding Kubernetes Objects" href="../overview/working-with-objects/kubernetes-objects.1"></a>

		
	
		
		
<a class="item" data-title="Names" href="../../user-guide/identifiers"></a>

		
	
		
		
<a class="item" data-title="Namespaces" href="../overview/working-with-objects/namespaces.1"></a>

		
	
		
		
<a class="item" data-title="Labels and Selectors" href="../../user-guide/labels"></a>

		
	
		
		
<a class="item" data-title="Annotations" href="../overview/working-with-objects/annotations.1"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Object Management Using kubectl">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Kubernetes Object Management" href="../../tutorials/object-management-kubectl/object-management/index.html"></a>

		
	
		
		
<a class="item" data-title="Managing Kubernetes Objects Using Imperative Commands" href="../../tutorials/object-management-kubectl/imperative-object-management-command/index.html"></a>

		
	
		
		
<a class="item" data-title="Imperative Management of Kubernetes Objects Using Configuration Files" href="../../tutorials/object-management-kubectl/imperative-object-management-configuration/index.html"></a>

		
	
		
		
<a class="item" data-title="Declarative Management of Kubernetes Objects Using Configuration Files" href="../../tutorials/object-management-kubectl/declarative-object-management-configuration/index.html"></a>

		
	

		</div>
	</div>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Compute, Storage, and Networking Extensions">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Cluster Administration Overview" href="../cluster-administration/cluster-administration-overview/index.html"></a>

		
	
		
		
<a class="item" data-title="Certificates" href="../cluster-administration/certificates/index.html"></a>

		
	
		
		
<a class="item" data-title="Cloud Providers" href="../cluster-administration/cloud-providers/index.html"></a>

		
	
		
		
<a class="item" data-title="Managing Resources" href="../cluster-administration/manage-deployment/index.html"></a>

		
	
		
		
<a class="item" data-title="Cluster Networking" href="../../admin/networking"></a>

		
	
		
		
<a class="item" data-title="Logging Architecture" href="../cluster-administration/logging.1"></a>

		
	
		
		
<a class="item" data-title="Configuring kubelet Garbage Collection" href="../cluster-administration/kubelet-garbage-collection/index.html"></a>

		
	
		
		
<a class="item" data-title="Federation" href="../cluster-administration/federation/index.html"></a>

		
	
		
		
<a class="item" data-title="Proxies in Kubernetes" href="../cluster-administration/proxies/index.html"></a>

		
	
		
		
<a class="item" data-title="Controller manager metrics" href="../cluster-administration/controller-metrics/index.html"></a>

		
	
		
		
<a class="item" data-title="Installing Addons" href="../cluster-administration/addons/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Kubernetes Architecture">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Nodes" href="../../admin/node.1"></a>

		
	
		
		
<a class="item" data-title="Master-Node communication" href="../architecture/master-node-communication/index.html"></a>

		
	
		
		
<a class="item" data-title="Concepts Underlying the Cloud Controller Manager" href="../architecture/cloud-controller/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Extending Kubernetes">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Extending your Kubernetes Cluster" href="../overview/extending/index.html"></a>

		
	
		
		
	<div class="item" data-title="Extending the Kubernetes API">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Extending the Kubernetes API with the aggregation layer" href="../api-extension/apiserver-aggregation.1"></a>

		
	
		
		
<a class="item" data-title="Custom Resources" href="../api-extension/custom-resources/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Compute, Storage, and Networking Extensions">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Network Plugins" href="../../admin/network-plugins/index.html"></a>

		
	
		
		
<a class="item" data-title="Device Plugins" href="../cluster-administration/device-plugins.1"></a>

		
	

		</div>
	</div>

		
	
		
		
<a class="item" data-title="Service Catalog" href="../service-catalog/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Containers">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Images" href="../containers/images/index.html"></a>

		
	
		
		
<a class="item" data-title="Container Environment Variables" href="../containers/container-environment-variables/index.html"></a>

		
	
		
		
<a class="item" data-title="Container Lifecycle Hooks" href="../containers/container-lifecycle-hooks/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Workloads">
		<div class="container">
		
		
	
	
		
		
	<div class="item" data-title="Pods">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Pod Overview" href="../workloads/pods/pod-overview/index.html"></a>

		
	
		
		
<a class="item" data-title="Pods" href="../../user-guide/pods/index.html"></a>

		
	
		
		
<a class="item" data-title="Pod Lifecycle" href="../../user-guide/pod-states/index.html"></a>

		
	
		
		
<a class="item" data-title="Init Containers" href="../abstractions/init-containers/index.html"></a>

		
	
		
		
<a class="item" data-title="Pod Preset" href="../workloads/pods/podpreset/index.html"></a>

		
	
		
		
<a class="item" data-title="Disruptions" href="../workloads/pods/disruptions/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Controllers">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="ReplicaSet" href="../workloads/controllers/replicaset/index.html"></a>

		
	
		
		
<a class="item" data-title="ReplicationController" href="../../user-guide/replication-controller/index.html"></a>

		
	
		
		
<a class="item" data-title="Deployments" href="../workloads/controllers/deployment/index.html"></a>

		
	
		
		
<a class="item" data-title="StatefulSets" href="../workloads/controllers/statefulset.md"></a>

		
	
		
		
<a class="item" data-title="DaemonSet" href="../workloads/controllers/daemonset.1"></a>

		
	
		
		
<a class="item" data-title="Garbage Collection" href="../workloads/controllers/garbage-collection/index.html"></a>

		
	
		
		
<a class="item" data-title="Jobs - Run to Completion" href="../workloads/controllers/jobs-run-to-completion.1"></a>

		
	
		
		
<a class="item" data-title="CronJob" href="../workloads/controllers/cron-jobs.1"></a>

		
	

		</div>
	</div>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Configuration">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Configuration Best Practices" href="../configuration/overview/index.html"></a>

		
	
		
		
<a class="item" data-title="Managing Compute Resources for Containers" href="../../user-guide/compute-resources/index.html"></a>

		
	
		
		
<a class="item" data-title="Assigning Pods to Nodes" href="../../user-guide/node-selection/index.html"></a>

		
	
		
		
<a class="item" data-title="Taints and Tolerations" href="../configuration/taint-and-toleration.1"></a>

		
	
		
		
<a class="item" data-title="Secrets" href="../../user-guide/secrets.1"></a>

		
	
		
		
<a class="item" data-title="Organizing Cluster Access Using kubeconfig Files" href="../configuration/organize-cluster-access-kubeconfig/index.html"></a>

		
	
		
		
<a class="item" data-title="Pod Priority and Preemption" href="../configuration/pod-priority-preemption/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Services, Load Balancing, and Networking">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Services" href="../../user-guide/services"></a>

		
	
		
		
<a class="item" data-title="DNS for Services and Pods" href="../services-networking/dns-pod-service/index.html"></a>

		
	
		
		
<a class="item" data-title="Connecting Applications with Services" href="../services-networking/connect-applications-service.1"></a>

		
	
		
		
<a class="item" data-title="Ingress" href="../services-networking/ingress/index.html"></a>

		
	
		
		
<a class="item" data-title="Network Policies" href="../services-networking/networkpolicies/index.html"></a>

		
	
		
		
<a class="item" data-title="Adding entries to Pod /etc/hosts with HostAliases" href="../services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Storage">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Volumes" href="volumes.1"></a>

		
	
		
		
<a class="item" data-title="Persistent Volumes" href="../../user-guide/persistent-volumes/index.html"></a>

		
	
		
		
<a class="item" data-title="Storage Classes" href="storage-classes.1"></a>

		
	
		
		
<a class="item" data-title="Dynamic Volume Provisioning" href="dynamic-provisioning/index.html"></a>

		
	
		
		
<a class="item" data-title="Node-specific Volume Limits" href="storage-limits/index.html"></a>

		
	

		</div>
	</div>

		
	
		
		
	<div class="item" data-title="Policies">
		<div class="container">
		
		
	
	
		
		
<a class="item" data-title="Resource Quotas" href="../policy/resource-quotas/index.html"></a>

		
	
		
		
<a class="item" data-title="Pod Security Policies" href="../../user-guide/pod-security-policy"></a>

		
	

		</div>
	</div>

		
	






     </div> 
    <button class="push-menu-close-button" onclick="kub.toggleToc()"></button>
</div> 

			<div id="docsContent">
				
<p><a href="../../editdocs#docs/concepts/storage/storage-classes.md" id="editPageButton">Edit This Page</a></p>

<h1>Storage Classes</h1>



<p>This document describes the concept of <code>StorageClass</code> in Kubernetes. Familiarity
with <a href="volumes.1">volumes</a> and
<a href="persistent-volumes.1">persistent volumes</a> is suggested.</p>









<ul id="markdown-toc">










<li><a href="storage-classes.1#introduction">Introduction</a></li>




<li><a href="storage-classes.1#the-storageclass-resource">The StorageClass Resource</a></li>




<li><a href="storage-classes.1#parameters">Parameters</a></li>



















</ul>


<h2 id="introduction">Introduction</h2>

<p>A <code>StorageClass</code> provides a way for administrators to describe the &ldquo;classes&rdquo; of
storage they offer. Different classes might map to quality-of-service levels,
or to backup policies, or to arbitrary policies determined by the cluster
administrators. Kubernetes itself is unopinionated about what classes
represent. This concept is sometimes called &ldquo;profiles&rdquo; in other storage
systems.</p>

<h2 id="the-storageclass-resource">The StorageClass Resource</h2>

<p>Each <code>StorageClass</code> contains the fields <code>provisioner</code>, <code>parameters</code>, and
<code>reclaimPolicy</code>, which are used when a <code>PersistentVolume</code> belonging to the
class needs to be dynamically provisioned.</p>

<p>The name of a <code>StorageClass</code> object is significant, and is how users can
request a particular class. Administrators set the name and other parameters
of a class when first creating <code>StorageClass</code> objects, and the objects cannot
be updated once they are created.</p>

<p>Administrators can specify a default <code>StorageClass</code> just for PVCs that don&rsquo;t
request any particular class to bind to: see the
<a href="../../user-guide/persistent-volumes/index.html#class-1"><code>PersistentVolumeClaim</code> section</a>
for details.</p>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>standard<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/aws-ebs<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>type:<span style="color:#bbb"> </span>gp2<span style="color:#bbb">
</span><span style="color:#bbb"></span>reclaimPolicy:<span style="color:#bbb"> </span>Retain<span style="color:#bbb">
</span><span style="color:#bbb"></span>mountOptions:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>-<span style="color:#bbb"> </span>debug</code></pre></div>
<h3 id="provisioner">Provisioner</h3>

<p>Storage classes have a provisioner that determines what volume plugin is used
for provisioning PVs. This field must be specified.</p>

<table>
<thead>
<tr>
<th align="left">Volume Plugin</th>
<th align="center">Internal Provisioner</th>
<th align="center">Config Example</th>
</tr>
</thead>

<tbody>
<tr>
<td align="left">AWSElasticBlockStore</td>
<td align="center">&#x2713;</td>
<td align="center"><a href="storage-classes.1#aws">AWS</a></td>
</tr>

<tr>
<td align="left">AzureFile</td>
<td align="center">&#x2713;</td>
<td align="center"><a href="storage-classes.1#azure-file">Azure File</a></td>
</tr>

<tr>
<td align="left">AzureDisk</td>
<td align="center">&#x2713;</td>
<td align="center"><a href="storage-classes.1#azure-disk">Azure Disk</a></td>
</tr>

<tr>
<td align="left">CephFS</td>
<td align="center">-</td>
<td align="center">-</td>
</tr>

<tr>
<td align="left">Cinder</td>
<td align="center">&#x2713;</td>
<td align="center"><a href="storage-classes.1#openstack-cinder">OpenStack Cinder</a></td>
</tr>

<tr>
<td align="left">FC</td>
<td align="center">-</td>
<td align="center">-</td>
</tr>

<tr>
<td align="left">FlexVolume</td>
<td align="center">-</td>
<td align="center">-</td>
</tr>

<tr>
<td align="left">Flocker</td>
<td align="center">&#x2713;</td>
<td align="center">-</td>
</tr>

<tr>
<td align="left">GCEPersistentDisk</td>
<td align="center">&#x2713;</td>
<td align="center"><a href="storage-classes.1#gce">GCE</a></td>
</tr>

<tr>
<td align="left">Glusterfs</td>
<td align="center">&#x2713;</td>
<td align="center"><a href="storage-classes.1#glusterfs">Glusterfs</a></td>
</tr>

<tr>
<td align="left">iSCSI</td>
<td align="center">-</td>
<td align="center">-</td>
</tr>

<tr>
<td align="left">Quobyte</td>
<td align="center">&#x2713;</td>
<td align="center"><a href="storage-classes.1#quobyte">Quobyte</a></td>
</tr>

<tr>
<td align="left">NFS</td>
<td align="center">-</td>
<td align="center">-</td>
</tr>

<tr>
<td align="left">RBD</td>
<td align="center">&#x2713;</td>
<td align="center"><a href="storage-classes.1#ceph-rbd">Ceph RBD</a></td>
</tr>

<tr>
<td align="left">VsphereVolume</td>
<td align="center">&#x2713;</td>
<td align="center"><a href="storage-classes.1#vsphere">vSphere</a></td>
</tr>

<tr>
<td align="left">PortworxVolume</td>
<td align="center">&#x2713;</td>
<td align="center"><a href="storage-classes.1#portworx-volume">Portworx Volume</a></td>
</tr>

<tr>
<td align="left">ScaleIO</td>
<td align="center">&#x2713;</td>
<td align="center"><a href="storage-classes.1#scaleio">ScaleIO</a></td>
</tr>

<tr>
<td align="left">StorageOS</td>
<td align="center">&#x2713;</td>
<td align="center"><a href="storage-classes.1#storageos">StorageOS</a></td>
</tr>

<tr>
<td align="left">Local</td>
<td align="center">-</td>
<td align="center"><a href="storage-classes.1#local">Local</a></td>
</tr>
</tbody>
</table>

<p>You are not restricted to specifying the &ldquo;internal&rdquo; provisioners
listed here (whose names are prefixed with &ldquo;kubernetes.io&rdquo; and shipped
alongside Kubernetes). You can also run and specify external provisioners,
which are independent programs that follow a <a href="https://git.k8s.io/community/contributors/design-proposals/storage/volume-provisioning.md" target="_blank">specification</a>
defined by Kubernetes. Authors of external provisioners have full discretion
over where their code lives, how the provisioner is shipped, how it needs to be
run, what volume plugin it uses (including Flex), etc. The repository <a href="https://github.com/kubernetes-incubator/external-storage" target="_blank">kubernetes-incubator/external-storage</a>
houses a library for writing external provisioners that implements the bulk of
the specification plus various community-maintained external provisioners.</p>

<p>For example, NFS doesn&rsquo;t provide an internal provisioner, but an external provisioner
can be used. Some external provisioners are listed under the repository <a href="https://github.com/kubernetes-incubator/external-storage" target="_blank">kubernetes-incubator/external-storage</a>.
There are also cases when 3rd party storage vendors provide their own external
provisioner.</p>

<h3 id="reclaim-policy">Reclaim Policy</h3>

<p>Persistent Volumes that are dynamically created by a storage class will have the
reclaim policy specified in the <code>reclaimPolicy</code> field of the class, which can be
either <code>Delete</code> or <code>Retain</code>. If no <code>reclaimPolicy</code> is specified when a
<code>StorageClass</code> object is created, it will default to <code>Delete</code>.</p>

<p>Persistent Volumes that are created manually and managed via a storage class will have
whatever reclaim policy they were assigned at creation.</p>

<h3 id="mount-options">Mount Options</h3>

<p>Persistent Volumes that are dynamically created by a storage class will have the
mount options specified in the <code>mountOptions</code> field of the class.</p>

<p>If the volume plugin does not support mount options but mount options are
specified, provisioning will fail. Mount options are not validated on either
the class or PV, so mount of the PV will simply fail if one is invalid.</p>

<h2 id="parameters">Parameters</h2>

<p>Storage classes have parameters that describe volumes belonging to the storage
class. Different parameters may be accepted depending on the <code>provisioner</code>. For
 example, the value <code>io1</code>, for the parameter <code>type</code>, and the parameter
<code>iopsPerGB</code> are specific to EBS. When a parameter is omitted, some default is
used.</p>

<h3 id="aws">AWS</h3>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>slow<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/aws-ebs<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>type:<span style="color:#bbb"> </span>io1<span style="color:#bbb">
</span><span style="color:#bbb">  </span>zones:<span style="color:#bbb"> </span>us-east-1d,<span style="color:#bbb"> </span>us-east-1c<span style="color:#bbb">
</span><span style="color:#bbb">  </span>iopsPerGB:<span style="color:#bbb"> </span><span style="color:#b44">&#34;10&#34;</span></code></pre></div>
<ul>
<li><code>type</code>: <code>io1</code>, <code>gp2</code>, <code>sc1</code>, <code>st1</code>. See
<a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html" target="_blank">AWS docs</a>
for details. Default: <code>gp2</code>.</li>
<li><code>zone</code>: AWS zone. If neither <code>zone</code> nor <code>zones</code> is specified, volumes are
generally round-robin-ed across all active zones where Kubernetes cluster
has a node. <code>zone</code> and <code>zones</code> parameters must not be used at the same time.</li>
<li><code>zones</code>: A comma separated list of AWS zone(s). If neither <code>zone</code> nor <code>zones</code>
is specified, volumes are generally round-robin-ed across all active zones
where Kubernetes cluster has a node. <code>zone</code> and <code>zones</code> parameters must not
be used at the same time.</li>
<li><code>iopsPerGB</code>: only for <code>io1</code> volumes. I/O operations per second per GiB. AWS
volume plugin multiplies this with size of requested volume to compute IOPS
of the volume and caps it at 20 000 IOPS (maximum supported by AWS, see
<a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html" target="_blank">AWS docs</a>.
A string is expected here, i.e. <code>&quot;10&quot;</code>, not <code>10</code>.</li>
<li><code>encrypted</code>: denotes whether the EBS volume should be encrypted or not.
Valid values are <code>&quot;true&quot;</code> or <code>&quot;false&quot;</code>. A string is expected here,
i.e. <code>&quot;true&quot;</code>, not <code>true</code>.</li>
<li><code>kmsKeyId</code>: optional. The full Amazon Resource Name of the key to use when
encrypting the volume. If none is supplied but <code>encrypted</code> is true, a key is
generated by AWS. See AWS docs for valid ARN value.</li>
</ul>

<h3 id="gce">GCE</h3>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>slow<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/gce-pd<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>type:<span style="color:#bbb"> </span>pd-standard<span style="color:#bbb">
</span><span style="color:#bbb">  </span>zones:<span style="color:#bbb"> </span>us-central1-a,<span style="color:#bbb"> </span>us-central1-b<span style="color:#bbb">
</span><span style="color:#bbb">  </span>replication-type:<span style="color:#bbb"> </span>none</code></pre></div>
<ul>
<li><code>type</code>: <code>pd-standard</code> or <code>pd-ssd</code>. Default: <code>pd-standard</code></li>
<li><code>zone</code>: GCE zone. If neither <code>zone</code> nor <code>zones</code> is specified, volumes are
generally round-robin-ed across all active zones where Kubernetes cluster has
a node. <code>zone</code> and <code>zones</code> parameters must not be used at the same time.</li>
<li><code>zones</code>: A comma separated list of GCE zone(s). If neither <code>zone</code> nor <code>zones</code>
is specified, volumes are generally round-robin-ed across all active zones
where Kubernetes cluster has a node. <code>zone</code> and <code>zones</code> parameters must not
be used at the same time.</li>
<li><code>replication-type</code>: <code>none</code> or <code>regional-pd</code>. Default: <code>none</code>.</li>
</ul>

<p>If <code>replication-type</code> is set to <code>none</code>, a regular (zonal) PD will be provisioned.</p>

<p>If <code>replication-type</code> is set to <code>regional-pd</code>, a
<a href="https://cloud.google.com/compute/docs/disks/#repds" target="_blank">Regional Persistent Disk</a>
will be provisioned. In this case, users must use <code>zones</code> instead of <code>zone</code> to
specify the desired replication zones. If exactly two zones are specified, the
Regional PD will be provisioned in those zones. If more than two zones are
specified, Kubernetes will arbitrarily choose among the specified zones. If the
<code>zones</code> parameter is omitted, Kubernetes will arbitrarily choose among zones
managed by the cluster.</p>

<h3 id="glusterfs">Glusterfs</h3>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>slow<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/glusterfs<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>resturl:<span style="color:#bbb"> </span><span style="color:#b44">&#34;http://127.0.0.1:8081&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>clusterid:<span style="color:#bbb"> </span><span style="color:#b44">&#34;630372ccdc720a92c681fb928f27b53f&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>restauthenabled:<span style="color:#bbb"> </span><span style="color:#b44">&#34;true&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>restuser:<span style="color:#bbb"> </span><span style="color:#b44">&#34;admin&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>secretNamespace:<span style="color:#bbb"> </span><span style="color:#b44">&#34;default&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>secretName:<span style="color:#bbb"> </span><span style="color:#b44">&#34;heketi-secret&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>gidMin:<span style="color:#bbb"> </span><span style="color:#b44">&#34;40000&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>gidMax:<span style="color:#bbb"> </span><span style="color:#b44">&#34;50000&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>volumetype:<span style="color:#bbb"> </span><span style="color:#b44">&#34;replicate:3&#34;</span></code></pre></div>
<ul>
<li><code>resturl</code>: Gluster REST service/Heketi service url which provision gluster
volumes on demand. The general format should be <code>IPaddress:Port</code> and this is
a mandatory parameter for GlusterFS dynamic provisioner. If Heketi service is
exposed as a routable service in openshift/kubernetes setup, this can have a
format similar to <code>http://heketi-storage-project.cloudapps.mystorage.com</code>
where the fqdn is a resolvable Heketi service url.</li>
<li><code>restauthenabled</code> : Gluster REST service authentication boolean that enables
authentication to the REST server. If this value is <code>&quot;true&quot;</code>, <code>restuser</code> and
<code>restuserkey</code> or <code>secretNamespace</code> + <code>secretName</code> have to be filled. This
option is deprecated, authentication is enabled when any of <code>restuser</code>,
<code>restuserkey</code>, <code>secretName</code> or <code>secretNamespace</code> is specified.</li>
<li><code>restuser</code> : Gluster REST service/Heketi user who has access to create volumes
in the Gluster Trusted Pool.</li>
<li><code>restuserkey</code> : Gluster REST service/Heketi user&rsquo;s password which will be used
for authentication to the REST server. This parameter is deprecated in favor
of <code>secretNamespace</code> + <code>secretName</code>.</li>
<li><code>secretNamespace</code>, <code>secretName</code> : Identification of Secret instance that
contains user password to use when talking to Gluster REST service. These
parameters are optional, empty password will be used when both
<code>secretNamespace</code> and <code>secretName</code> are omitted. The provided secret must have
type <code>&quot;kubernetes.io/glusterfs&quot;</code>, e.g. created in this way:
<code>
kubectl create secret generic heketi-secret \
--type=&quot;kubernetes.io/glusterfs&quot; --from-literal=key='opensesame' \
--namespace=default
</code>
Example of a secret can be found in
<a href="https://github.com/kubernetes/examples/tree/master/staging/persistent-volume-provisioning/glusterfs/glusterfs-secret.yaml" target="_blank">glusterfs-provisioning-secret.yaml</a>.</li>
<li><code>clusterid</code>: <code>630372ccdc720a92c681fb928f27b53f</code> is the ID of the cluster
which will be used by Heketi when provisioning the volume. It can also be a
list of clusterids, for example:
<code>&quot;8452344e2becec931ece4e33c4674e4e,42982310de6c63381718ccfa6d8cf397&quot;</code>. This
is an optional parameter.</li>
<li><code>gidMin</code>, <code>gidMax</code> : The minimum and maximum value of GID range for the
storage class. A unique value (GID) in this range ( gidMin-gidMax ) will be
used for dynamically provisioned volumes. These are optional values. If not
specified, the volume will be provisioned with a value between 2000-2147483647
which are defaults for gidMin and gidMax respectively.</li>
<li><code>volumetype</code> : The volume type and its parameters can be configured with this
optional value. If the volume type is not mentioned, it&rsquo;s up to the provisioner
to decide the volume type.
For example:
&lsquo;Replica volume&rsquo;:
  <code>volumetype: replicate:3</code> where &lsquo;3&rsquo; is replica count.
&lsquo;Disperse/EC volume&rsquo;:
  <code>volumetype: disperse:4:2</code> where &lsquo;4&rsquo; is data and &lsquo;2&rsquo; is the redundancy count.
&lsquo;Distribute volume&rsquo;:
  <code>volumetype: none</code></li>
</ul>

<p>For available volume types and administration options, refer to the
<a href="https://access.redhat.com/documentation/en-US/Red_Hat_Storage/3.1/html/Administration_Guide/part-Overview.html" target="_blank">Administration Guide</a>.</p>

<p>For further reference information, see
<a href="https://github.com/heketi/heketi/wiki/Setting-up-the-topology" target="_blank">How to configure Heketi</a>.</p>

<p>When persistent volumes are dynamically provisioned, the Gluster plugin
automatically creates an endpoint and a headless service in the name
<code>gluster-dynamic-&lt;claimname&gt;</code>. The dynamic endpoint and service are automatically
deleted when the persistent volume claim is deleted.</p>

<h3 id="openstack-cinder">OpenStack Cinder</h3>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>gold<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/cinder<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>type:<span style="color:#bbb"> </span>fast<span style="color:#bbb">
</span><span style="color:#bbb">  </span>availability:<span style="color:#bbb"> </span>nova</code></pre></div>
<ul>
<li><code>type</code>: <a href="https://docs.openstack.org/user-guide/dashboard-manage-volumes.html" target="_blank">VolumeType</a>
created in Cinder. Default is empty.</li>
<li><code>availability</code>: Availability Zone. If not specified, volumes are generally
round-robin-ed across all active zones where Kubernetes cluster has a node.</li>
</ul>

<h3 id="vsphere">vSphere</h3>

<ol>
<li><p>Create a StorageClass with a user specified disk format.</p>

<pre><code>kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: fast
provisioner: kubernetes.io/vsphere-volume
parameters:
  diskformat: zeroedthick
</code></pre>

<p><code>diskformat</code>: <code>thin</code>, <code>zeroedthick</code> and <code>eagerzeroedthick</code>. Default: <code>&quot;thin&quot;</code>.</p></li>

<li><p>Create a StorageClass with a disk format on a user specified datastore.</p>

<pre><code>kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: fast
provisioner: kubernetes.io/vsphere-volume
parameters:
    diskformat: zeroedthick
    datastore: VSANDatastore
</code></pre>

<p><code>datastore</code>: The user can also specify the datastore in the StorageClass.
The volume will be created on the datastore specified in the storage class,
which in this case is <code>VSANDatastore</code>. This field is optional. If the
datastore is not specified, then the volume will be created on the datastore
specified in the vSphere config file used to initialize the vSphere Cloud
Provider.</p></li>

<li><p>Storage Policy Management inside kubernetes</p>

<ul>
<li>Using existing vCenter SPBM policy</li>
</ul>

<p>One of the most important features of vSphere for Storage Management is
  policy based Management. Storage Policy Based Management (SPBM) is a
  storage policy framework that provides a single unified control plane
  across a broad range of data services and storage solutions. SPBM enables
  vSphere administrators to overcome upfront storage provisioning challenges,
  such as capacity planning, differentiated service levels and managing
  capacity headroom.</p>

<p>The SPBM policies can be specified in the StorageClass using the
  <code>storagePolicyName</code> parameter.</p>

<ul>
<li>Virtual SAN policy support inside Kubernetes</li>
</ul>

<p>Vsphere Infrastructure (VI) Admins will have the ability to specify custom
  Virtual SAN Storage Capabilities during dynamic volume provisioning. You
  can now define storage requirements, such as performance and availability,
  in the form of storage capabilities during dynamic volume provisioning.
  The storage capability requirements are converted into a Virtual SAN
  policy which are then pushed down to the Virtual SAN layer when a
  persistent volume (virtual disk) is being created. The virtual disk is
  distributed across the Virtual SAN datastore to meet the requirements.</p>

<p>You can see <a href="https://vmware.github.io/vsphere-storage-for-kubernetes/documentation/policy-based-mgmt.html" target="_blank">Storage Policy Based Management for dynamic provisioning of volumes</a>
  for more details on how to use storage policies for persistent volumes
  management.</p></li>
</ol>

<p>There are few
<a href="https://github.com/kubernetes/examples/tree/master/staging/volumes/vsphere" target="_blank">vSphere examples</a>
which you try out for persistent volume management inside Kubernetes for vSphere.</p>

<h3 id="ceph-rbd">Ceph RBD</h3>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>fast<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/rbd<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>monitors:<span style="color:#bbb"> </span><span style="color:#666">10.16</span>.<span style="color:#666">153.105</span>:<span style="color:#666">6789</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>adminId:<span style="color:#bbb"> </span>kube<span style="color:#bbb">
</span><span style="color:#bbb">  </span>adminSecretName:<span style="color:#bbb"> </span>ceph-secret<span style="color:#bbb">
</span><span style="color:#bbb">  </span>adminSecretNamespace:<span style="color:#bbb"> </span>kube-system<span style="color:#bbb">
</span><span style="color:#bbb">  </span>pool:<span style="color:#bbb"> </span>kube<span style="color:#bbb">
</span><span style="color:#bbb">  </span>userId:<span style="color:#bbb"> </span>kube<span style="color:#bbb">
</span><span style="color:#bbb">  </span>userSecretName:<span style="color:#bbb"> </span>ceph-secret-user<span style="color:#bbb">
</span><span style="color:#bbb">  </span>fsType:<span style="color:#bbb"> </span>ext4<span style="color:#bbb">
</span><span style="color:#bbb">  </span>imageFormat:<span style="color:#bbb"> </span><span style="color:#b44">&#34;2&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>imageFeatures:<span style="color:#bbb"> </span><span style="color:#b44">&#34;layering&#34;</span></code></pre></div>
<ul>
<li><code>monitors</code>: Ceph monitors, comma delimited. This parameter is required.</li>
<li><code>adminId</code>: Ceph client ID that is capable of creating images in the pool.
Default is &ldquo;admin&rdquo;.</li>
<li><code>adminSecretNamespace</code>: The namespace for <code>adminSecret</code>. Default is &ldquo;default&rdquo;.</li>
<li><code>adminSecret</code>: Secret Name for <code>adminId</code>. This parameter is required.
The provided secret must have type &ldquo;kubernetes.io/rbd&rdquo;.</li>
<li><code>pool</code>: Ceph RBD pool. Default is &ldquo;rbd&rdquo;.</li>
<li><code>userId</code>: Ceph client ID that is used to map the RBD image. Default is the
same as <code>adminId</code>.</li>
<li><code>userSecretName</code>: The name of Ceph Secret for <code>userId</code> to map RBD image. It
must exist in the same namespace as PVCs. This parameter is required.
The provided secret must have type &ldquo;kubernetes.io/rbd&rdquo;, e.g. created in this
way:
<code>
kubectl create secret generic ceph-secret --type=&quot;kubernetes.io/rbd&quot; \
--from-literal=key='QVFEQ1pMdFhPUnQrSmhBQUFYaERWNHJsZ3BsMmNjcDR6RFZST0E9PQ==' \
--namespace=kube-system
</code></li>
<li><code>fsType</code>: fsType that is supported by kubernetes. Default: <code>&quot;ext4&quot;</code>.</li>
<li><code>imageFormat</code>: Ceph RBD image format, &ldquo;1&rdquo; or &ldquo;2&rdquo;. Default is &ldquo;1&rdquo;.</li>
<li><code>imageFeatures</code>: This parameter is optional and should only be used if you
set <code>imageFormat</code> to &ldquo;2&rdquo;. Currently supported features are <code>layering</code> only.
Default is &ldquo;&rdquo;, and no features are turned on.</li>
</ul>

<h3 id="quobyte">Quobyte</h3>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">   </span>name:<span style="color:#bbb"> </span>slow<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/quobyte<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">    </span>quobyteAPIServer:<span style="color:#bbb"> </span><span style="color:#b44">&#34;http://138.68.74.142:7860&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">    </span>registry:<span style="color:#bbb"> </span><span style="color:#b44">&#34;138.68.74.142:7861&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">    </span>adminSecretName:<span style="color:#bbb"> </span><span style="color:#b44">&#34;quobyte-admin-secret&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">    </span>adminSecretNamespace:<span style="color:#bbb"> </span><span style="color:#b44">&#34;kube-system&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">    </span>user:<span style="color:#bbb"> </span><span style="color:#b44">&#34;root&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">    </span>group:<span style="color:#bbb"> </span><span style="color:#b44">&#34;root&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">    </span>quobyteConfig:<span style="color:#bbb"> </span><span style="color:#b44">&#34;BASE&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">    </span>quobyteTenant:<span style="color:#bbb"> </span><span style="color:#b44">&#34;DEFAULT&#34;</span></code></pre></div>
<ul>
<li><code>quobyteAPIServer</code>: API Server of Quobyte in the format
<code>&quot;http(s)://api-server:7860&quot;</code></li>
<li><code>registry</code>: Quobyte registry to use to mount the volume. You can specify the
registry as <code>&lt;host&gt;:&lt;port&gt;</code> pair or if you want to specify multiple
registries you just have to put a comma between them e.q.
<code>&lt;host1&gt;:&lt;port&gt;,&lt;host2&gt;:&lt;port&gt;,&lt;host3&gt;:&lt;port&gt;</code>.
The host can be an IP address or if you have a working DNS you can also
provide the DNS names.</li>
<li><code>adminSecretNamespace</code>: The namespace for <code>adminSecretName</code>.
Default is &ldquo;default&rdquo;.</li>
<li><code>adminSecretName</code>: secret that holds information about the Quobyte user and
the password to authenticate against the API server. The provided secret
must have type &ldquo;kubernetes.io/quobyte&rdquo;, e.g. created in this way:
<code>
kubectl create secret generic quobyte-admin-secret \
--type=&quot;kubernetes.io/quobyte&quot; --from-literal=key='opensesame' \
--namespace=kube-system
</code></li>
<li><code>user</code>: maps all access to this user. Default is &ldquo;root&rdquo;.</li>
<li><code>group</code>: maps all access to this group. Default is &ldquo;nfsnobody&rdquo;.</li>
<li><code>quobyteConfig</code>: use the specified configuration to create the volume. You
can create a new configuration or modify an existing one with the Web
console or the quobyte CLI. Default is &ldquo;BASE&rdquo;.</li>
<li><code>quobyteTenant</code>: use the specified tenant ID to create/delete the volume.
This Quobyte tenant has to be already present in Quobyte.
Default is &ldquo;DEFAULT&rdquo;.</li>
</ul>

<h3 id="azure-disk">Azure Disk</h3>

<h4 id="azure-unmanaged-disk-storage-class">Azure Unmanaged Disk Storage Class</h4>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>slow<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/azure-disk<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>skuName:<span style="color:#bbb"> </span>Standard_LRS<span style="color:#bbb">
</span><span style="color:#bbb">  </span>location:<span style="color:#bbb"> </span>eastus<span style="color:#bbb">
</span><span style="color:#bbb">  </span>storageAccount:<span style="color:#bbb"> </span>azure_storage_account_name</code></pre></div>
<ul>
<li><code>skuName</code>: Azure storage account Sku tier. Default is empty.</li>
<li><code>location</code>: Azure storage account location. Default is empty.</li>
<li><code>storageAccount</code>: Azure storage account name. If a storage account is provided,
it must reside in the same resource group as the cluster, and <code>location</code> is
ignored. If a storage account is not provided, a new storage account will be
created in the same resource group as the cluster.</li>
</ul>

<h4 id="new-azure-disk-storage-class-starting-from-v1-7-2">New Azure Disk Storage Class (starting from v1.7.2)</h4>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>slow<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/azure-disk<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>storageaccounttype:<span style="color:#bbb"> </span>Standard_LRS<span style="color:#bbb">
</span><span style="color:#bbb">  </span>kind:<span style="color:#bbb"> </span>Shared</code></pre></div>
<ul>
<li><code>storageaccounttype</code>: Azure storage account Sku tier. Default is empty.</li>

<li><p><code>kind</code>: Possible values are <code>shared</code> (default), <code>dedicated</code>, and <code>managed</code>.
When <code>kind</code> is <code>shared</code>, all unmanaged disks are created in a few shared
storage accounts in the same resource group as the cluster. When <code>kind</code> is
<code>dedicated</code>, a new dedicated storage account will be created for the new
unmanaged disk in the same resource group as the cluster. When <code>kind</code> is
<code>managed</code>, all managed disks are created in the same resource group as
the cluster.</p></li>

<li><p>Premium VM can attach both Standard_LRS and Premium_LRS disks, while Standard
VM can only attach Standard_LRS disks.</p></li>

<li><p>Managed VM can only attach managed disks and unmanaged VM can only attach
unmanaged disks.</p></li>
</ul>

<h3 id="azure-file">Azure File</h3>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>azurefile<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/azure-file<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>skuName:<span style="color:#bbb"> </span>Standard_LRS<span style="color:#bbb">
</span><span style="color:#bbb">  </span>location:<span style="color:#bbb"> </span>eastus<span style="color:#bbb">
</span><span style="color:#bbb">  </span>storageAccount:<span style="color:#bbb"> </span>azure_storage_account_name</code></pre></div>
<ul>
<li><code>skuName</code>: Azure storage account Sku tier. Default is empty.</li>
<li><code>location</code>: Azure storage account location. Default is empty.</li>
<li><code>storageAccount</code>: Azure storage account name.  Default is empty. If a storage
account is not provided, all storage accounts associated with the resource
group are searched to find one that matches <code>skuName</code> and <code>location</code>. If a
storage account is provided, it must reside in the same resource group as the
cluster, and <code>skuName</code> and <code>location</code> are ignored.</li>
</ul>

<p>During provision, a secret is created for mounting credentials. If the cluster
has enabled both <a href="../../admin/authorization/rbac/index.html">RBAC</a> and
<a href="../../admin/authorization/rbac/index.html#controller-roles">Controller Roles</a>, add the
<code>create</code> permission of resource <code>secret</code> for clusterrole
<code>system:controller:persistent-volume-binder</code>.</p>

<h3 id="portworx-volume">Portworx Volume</h3>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>portworx-io-priority-high<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/portworx-volume<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>repl:<span style="color:#bbb"> </span><span style="color:#b44">&#34;1&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>snap_interval:<span style="color:#bbb">   </span><span style="color:#b44">&#34;70&#34;</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>io_priority:<span style="color:#bbb">  </span><span style="color:#b44">&#34;high&#34;</span></code></pre></div>
<ul>
<li><code>fs</code>: filesystem to be laid out: <a href="default: `ext4`" target="_blank">none/xfs/ext4</a>.</li>
<li><code>block_size</code>: block size in Kbytes (default: <code>32</code>).</li>
<li><code>repl</code>: number of synchronous replicas to be provided in the form of
replication factor <a href="default: `1`" target="_blank">1..3</a> A string is expected here i.e.
<code>&quot;1&quot;</code> and not <code>1</code>.</li>
<li><code>io_priority</code>: determines whether the volume will be created from higher
performance or a lower priority storage <a href="default: `low`" target="_blank">high/medium/low</a>.</li>
<li><code>snap_interval</code>: clock/time interval in minutes for when to trigger snapshots.
Snapshots are incremental based on difference with the prior snapshot, 0
disables snaps (default: <code>0</code>). A string is expected here i.e.
<code>&quot;70&quot;</code> and not <code>70</code>.</li>
<li><code>aggregation_level</code>: specifies the number of chunks the volume would be
distributed into, 0 indicates a non-aggregated volume (default: <code>0</code>). A string
is expected here i.e. <code>&quot;0&quot;</code> and not <code>0</code></li>
<li><code>ephemeral</code>: specifies whether the volume should be cleaned-up after unmount
or should be persistent. <code>emptyDir</code> use case can set this value to true and
<code>persistent volumes</code> use case such as for databases like Cassandra should set
to false, <a href="https://v1-11.docs.kubernetes.io/docs/concepts/storage/storage-classes/default&#32;`false`" target="_blank">true/false</a>. A string is expected here i.e.
<code>&quot;true&quot;</code> and not <code>true</code>.</li>
</ul>

<h3 id="scaleio">ScaleIO</h3>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>slow<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/scaleio<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>gateway:<span style="color:#bbb"> </span>https://<span style="color:#666">192.168</span>.<span style="color:#666">99.200</span>:<span style="color:#666">443</span>/api<span style="color:#bbb">
</span><span style="color:#bbb">  </span>system:<span style="color:#bbb"> </span>scaleio<span style="color:#bbb">
</span><span style="color:#bbb">  </span>protectionDomain:<span style="color:#bbb"> </span>pd0<span style="color:#bbb">
</span><span style="color:#bbb">  </span>storagePool:<span style="color:#bbb"> </span>sp1<span style="color:#bbb">
</span><span style="color:#bbb">  </span>storageMode:<span style="color:#bbb"> </span>ThinProvisioned<span style="color:#bbb">
</span><span style="color:#bbb">  </span>secretRef:<span style="color:#bbb"> </span>sio-secret<span style="color:#bbb">
</span><span style="color:#bbb">  </span>readOnly:<span style="color:#bbb"> </span><span style="color:#a2f;font-weight:bold">false</span><span style="color:#bbb">
</span><span style="color:#bbb">  </span>fsType:<span style="color:#bbb"> </span>xfs</code></pre></div>
<ul>
<li><code>provisioner</code>: attribute is set to <code>kubernetes.io/scaleio</code></li>
<li><code>gateway</code>: address to a ScaleIO API gateway (required)</li>
<li><code>system</code>: the name of the ScaleIO system (required)</li>
<li><code>protectionDomain</code>: the name of the ScaleIO protection domain (required)</li>
<li><code>storagePool</code>: the name of the volume storage pool (required)</li>
<li><code>storageMode</code>: the storage provision mode: <code>ThinProvisioned</code> (default) or
<code>ThickProvisioned</code></li>
<li><code>secretRef</code>: reference to a configured Secret object (required)</li>
<li><code>readOnly</code>: specifies the access mode to the mounted volume (default false)</li>
<li><code>fsType</code>: the file system to use for the volume (default ext4)</li>
</ul>

<p>The ScaleIO Kubernetes volume plugin requires a configured Secret object.
The secret must be created with type <code>kubernetes.io/scaleio</code> and use the same
namespace value as that of the PVC where it is referenced
as shown in the following command:</p>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell">kubectl create secret generic sio-secret --type<span style="color:#666">=</span><span style="color:#b44">&#34;kubernetes.io/scaleio&#34;</span> <span style="color:#b62;font-weight:bold">\
</span><span style="color:#b62;font-weight:bold"></span>--from-literal<span style="color:#666">=</span><span style="color:#b8860b">username</span><span style="color:#666">=</span>sioadmin --from-literal<span style="color:#666">=</span><span style="color:#b8860b">password</span><span style="color:#666">=</span><span style="color:#b8860b">d2NABDNjMA</span><span style="color:#666">==</span> <span style="color:#b62;font-weight:bold">\
</span><span style="color:#b62;font-weight:bold"></span>--namespace<span style="color:#666">=</span>default</code></pre></div>
<h3 id="storageos">StorageOS</h3>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>fast<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/storageos<span style="color:#bbb">
</span><span style="color:#bbb"></span>parameters:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>pool:<span style="color:#bbb"> </span>default<span style="color:#bbb">
</span><span style="color:#bbb">  </span>description:<span style="color:#bbb"> </span>Kubernetes<span style="color:#bbb"> </span>volume<span style="color:#bbb">
</span><span style="color:#bbb">  </span>fsType:<span style="color:#bbb"> </span>ext4<span style="color:#bbb">
</span><span style="color:#bbb">  </span>adminSecretNamespace:<span style="color:#bbb"> </span>default<span style="color:#bbb">
</span><span style="color:#bbb">  </span>adminSecretName:<span style="color:#bbb"> </span>storageos-secret</code></pre></div>
<ul>
<li><code>pool</code>: The name of the StorageOS distributed capacity pool to provision the
volume from.  Uses the <code>default</code> pool which is normally present if not specified.</li>
<li><code>description</code>: The description to assign to volumes that were created dynamically.
All volume descriptions will be the same for the storage class, but different
storage classes can be used to allow descriptions for different use cases.
Defaults to <code>Kubernetes volume</code>.</li>
<li><code>fsType</code>: The default filesystem type to request. Note that user-defined rules
within StorageOS may override this value.  Defaults to <code>ext4</code>.</li>
<li><code>adminSecretNamespace</code>: The namespace where the API configuration secret is
located. Required if adminSecretName set.</li>
<li><code>adminSecretName</code>: The name of the secret to use for obtaining the StorageOS
API credentials. If not specified, default values will be attempted.</li>
</ul>

<p>The StorageOS Kubernetes volume plugin can use a Secret object to specify an
endpoint and credentials to access the StorageOS API. This is only required when
the defaults have been changed.
The secret must be created with type <code>kubernetes.io/storageos</code> as shown in the
following command:</p>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell">kubectl create secret generic storageos-secret <span style="color:#b62;font-weight:bold">\
</span><span style="color:#b62;font-weight:bold"></span>--type<span style="color:#666">=</span><span style="color:#b44">&#34;kubernetes.io/storageos&#34;</span> <span style="color:#b62;font-weight:bold">\
</span><span style="color:#b62;font-weight:bold"></span>--from-literal<span style="color:#666">=</span><span style="color:#b8860b">apiAddress</span><span style="color:#666">=</span>tcp://localhost:5705 <span style="color:#b62;font-weight:bold">\
</span><span style="color:#b62;font-weight:bold"></span>--from-literal<span style="color:#666">=</span><span style="color:#b8860b">apiUsername</span><span style="color:#666">=</span>storageos <span style="color:#b62;font-weight:bold">\
</span><span style="color:#b62;font-weight:bold"></span>--from-literal<span style="color:#666">=</span><span style="color:#b8860b">apiPassword</span><span style="color:#666">=</span>storageos <span style="color:#b62;font-weight:bold">\
</span><span style="color:#b62;font-weight:bold"></span>--namespace<span style="color:#666">=</span>default</code></pre></div>
<p>Secrets used for dynamically provisioned volumes may be created in any namespace
and referenced with the <code>adminSecretNamespace</code> parameter. Secrets used by
pre-provisioned volumes must be created in the same namespace as the PVC that
references it.</p>

<h3 id="local">Local</h3>

<div style="margin-top: 10px; margin-bottom: 10px;">



<b>FEATURE STATE:</b> <code>Kubernetes v1.10</code>




    
    
    
    
    
<a href="storage-classes.1#" id="feature-state-dialog-link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin"></span>beta</a>
<div id="feature-state-dialog" class="ui-dialog-content" title="beta">
This feature is currently in a <em>beta</em> state, meaning:</p>

<ul>
<li>The version names contain beta (e.g. v2beta3).</li>
<li>Code is well tested. Enabling the feature is considered safe. Enabled by default.</li>
<li>Support for the overall feature will not be dropped, though details may change.</li>
<li>The schema and/or semantics of objects may change in incompatible ways in a subsequent beta or stable release. When this happens, we will provide instructions for migrating to the next version. This may require deleting, editing, and re-creating API objects. The editing process may require some thought. This may require downtime for applications that rely on the feature.</li>
<li>Recommended for only non-business-critical uses because of potential for incompatible changes in subsequent releases. If you have multiple clusters that can be upgraded independently, you may be able to relax this restriction.</li>
<li><strong>Please do try our beta features and give feedback on them! After they exit beta, it may not be practical for us to make more changes.</strong></li>
</ul>

</div>
<script>
$(function(){
    
    $( "#feature-state-dialog" ).dialog({
        autoOpen: false,
        width: "600",
        buttons: [
            {
                text: "Ok",
                click: function() {
                    $( this ).dialog( "close" );
                }
            }
        ]
    });

    
    $( "#feature-state-dialog-link" ).click(function( event ) {
        $( "#feature-state-dialog" ).dialog( "open" );
        event.preventDefault();
    });

});
</script>

    

</div>
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">kind:<span style="color:#bbb"> </span>StorageClass<span style="color:#bbb">
</span><span style="color:#bbb"></span>apiVersion:<span style="color:#bbb"> </span>storage.k8s.io/v1<span style="color:#bbb">
</span><span style="color:#bbb"></span>metadata:<span style="color:#bbb">
</span><span style="color:#bbb">  </span>name:<span style="color:#bbb"> </span>local-storage<span style="color:#bbb">
</span><span style="color:#bbb"></span>provisioner:<span style="color:#bbb"> </span>kubernetes.io/no-provisioner<span style="color:#bbb">
</span><span style="color:#bbb"></span>volumeBindingMode:<span style="color:#bbb"> </span>WaitForFirstConsumer</code></pre></div>
<p>Local volumes do not support dynamic provisioning yet, however a StorageClass
should still be created to delay volume binding until pod scheduling. This is
specified by the <code>WaitForFirstConsumer</code> volume binding mode.</p>

<p>Delaying volume binding allows the scheduler to consider all of a pod&rsquo;s
scheduling constraints when choosing an appropriate PersistentVolume for a
PersistentVolumeClaim.</p>
















				<div class="issue-button-container">
					<p><a href="storage-classes.1"><img src="https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/concepts/storage/storage-classes.md?pixel" alt="Analytics" /></a></p>
					
					
					<script type="text/javascript">
					PDRTJS_settings_8345992 = {
					"id" : "8345992",
					"unique_id" : "\/docs\/concepts\/storage\/storage-classes\/",
					"title" : "Storage Classes",
					"permalink" : "https:\/\/kubernetes.io\/docs\/concepts\/storage\/storage-classes\/"
					};
					(function(d,c,j){if(!document.getElementById(j)){var pd=d.createElement(c),s;pd.id=j;pd.src=('https:'==document.location.protocol)?'https://polldaddy.com/js/rating/rating.js':'http://i0.poll.fm/js/rating/rating.js';s=document.getElementsByTagName(c)[0];s.parentNode.insertBefore(pd,s);}}(document,'script','pd-rating-js'));
					</script>
					<a href="storage-classes.1" onclick="window.open('https://github.com/kubernetes/website/issues/new?title=Issue%20with%20' +
					'k8s.io'+window.location.pathname)" class="button issue">Create an Issue</a>
					
					
					
					<a href="../../editdocs#docs/concepts/storage/storage-classes.md" class="button issue">Edit this Page</a>
					
				</div>
			</div>
		</section>
		<footer>
    <main class="light-text">
        <nav>
            
            
            
            <a href="../../home.1">Documentation</a>
            
            <a href="../../../blog/index.html">Blog</a>
            
            <a href="../../../partners/index.html">Partners</a>
            
            <a href="../../../community/index.html">Community</a>
            
            <a href="../../../case-studies/index.html">Case Studies</a>
            
        </nav>
        <div class="social">
            <div>
                <a href="https://twitter.com/kubernetesio" class="twitter"><span>twitter</span></a>
                <a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
                <a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
            </div>
            <div>
                <a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>Stack Overflow</span></a>
                <a href="https://discuss.kubernetes.io" class="mailing-list"><span>Forum</span></a>
                <a href="https://calendar.google.com/calendar/embed?src=nt2tcnbtbied3l6gi2h29slvc0%40group.calendar.google.com" class="calendar"><span>Events Calendar</span></a>
            </div>
            <div>
                <a href="../../getting-started-guides/index.html" class="button">Get Kubernetes</a>
                <a href="https://git.k8s.io/community/contributors/guide" class="button">Contribute</a>
            </div>
        </div>
        <div id="miceType" class="center">
            &copy; 2018 The Kubernetes Authors | Documentation Distributed under <a href="https://git.k8s.io/website/LICENSE" class="light-text">CC BY 4.0</a>
        </div>
        <div id="miceType" class="center">
            Copyright &copy; 2018 The Linux Foundation&reg;. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a href="https://www.linuxfoundation.org/trademark-usage" class="light-text">Trademark Usage page</a>
        </div>
    </main>
</footer>

		<button class="flyout-button" onclick="kub.toggleToc()"></button>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-36037335-10', 'auto');
ga('send', 'pageview');


(function () {
    window.addEventListener('DOMContentLoaded', init)

        
        function init() {
            window.removeEventListener('DOMContentLoaded', init)
                hideNav()
        }

    function hideNav(toc){
        if (!toc) toc = document.querySelector('#docsToc')
        if (!toc) return
            var container = toc.querySelector('.container')

                
                if (container) {
                    if (container.childElementCount === 0 || toc.querySelectorAll('a.item').length === 1) {
                        toc.style.display = 'none'
                            document.getElementById('docsContent').style.width = '100%'
                    }
                } else {
                    requestAnimationFrame(function () {
                        hideNav(toc)
                    })
                }
    }
})();
</script>



	</body>
</html>